home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 1.iso / ARGONET / PD / PROGRAMMING / DESKLIBC / SOURCES.ZIP / DeskLib / !DLSources / Libraries / Icon / c / GetShade < prev    next >
Text File  |  1993-07-14  |  1KB  |  30 lines

  1. /*
  2.     ####             #    #     # #
  3.     #   #            #    #       #          The FreeWare C library for 
  4.     #   #  ##   ###  #  # #     # ###             RISC OS machines
  5.     #   # #  # #     # #  #     # #  #   ___________________________________
  6.     #   # ####  ###  ##   #     # #  #                                      
  7.     #   # #        # # #  #     # #  #    Please refer to the accompanying
  8.     ####   ### ####  #  # ##### # ###    documentation for conditions of use
  9.     ________________________________________________________________________
  10.  
  11.     File:    Icon.GetShade.c
  12.     Author:  Copyright © 1993 Jason Howat
  13.     Version: 1.00 (14 Jul 1993)
  14.     Purpose: Retrieve the current 'shading' state of the given icon.
  15. */
  16.  
  17. #include "DeskLib:Wimp.h"
  18. #include "DeskLib:WimpSWIs.h"
  19. #include "DeskLib:Icon.h"
  20.  
  21.  
  22. extern BOOL Icon_GetShade(window_handle window, icon_handle icon)
  23. /* The current state of the given icon's 'shading' is returned. */
  24. {
  25.   icon_block istate;
  26.  
  27.   Wimp_GetIconState(window, icon, &istate);
  28.   return(istate.flags.data.shaded);
  29. }
  30.